﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QQRobot.Services.Models.Response
{
    /// <summary>
    /// 双色球响应结果
    /// </summary>
    public class UnionLottoResponse
    {
        [JsonProperty("state")]
        public int State { get; set; }

        [JsonProperty("message")]
        public string Message { get; set; }

        [JsonProperty("total")]
        public int Total { get; set; }

        [JsonProperty("pageNum")]
        public int PageNum { get; set; }

        [JsonProperty("pageNo")]
        public int PageNo { get; set; }

        [JsonProperty("pageSize")]
        public int PageSize { get; set; }

        [JsonProperty("Tflag")]
        public int Tflag { get; set; }

        [JsonProperty("result")]
        public List<LotteryResult> Result { get; set; }
    }

    public class LotteryResult
    {
        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("code")]
        public string Code { get; set; }

        [JsonProperty("detailsLink")]
        public string DetailsLink { get; set; }

        [JsonProperty("videoLink")]
        public string VideoLink { get; set; }

        [JsonProperty("date")]
        public string Date { get; set; }

        [JsonProperty("week")]
        public string Week { get; set; }

        [JsonProperty("red")]
        public string Red { get; set; }

        [JsonProperty("blue")]
        public string Blue { get; set; }

        [JsonProperty("blue2")]
        public string Blue2 { get; set; }

        [JsonProperty("sales")]
        public string Sales { get; set; }

        [JsonProperty("poolmoney")]
        public string PoolMoney { get; set; }

        [JsonProperty("content")]
        public string Content { get; set; }

        [JsonProperty("addmoney")]
        public string AddMoney { get; set; }

        [JsonProperty("addmoney2")]
        public string AddMoney2 { get; set; }

        [JsonProperty("msg")]
        public string Msg { get; set; }

        [JsonProperty("z2add")]
        public string Z2Add { get; set; }

        [JsonProperty("m2add")]
        public string M2Add { get; set; }

        [JsonProperty("prizegrades")]
        public List<PrizeGrade> PrizeGrades { get; set; }
    }

    public class PrizeGrade
    {
        [JsonProperty("type")]
        public int Type { get; set; }

        [JsonProperty("typenum")]
        public string TypeNum { get; set; }

        [JsonProperty("typemoney")]
        public string TypeMoney { get; set; }
    }
}
